﻿using UnityEngine;
using System.Collections;

public class sships : MonoBehaviour {

	public float velx;

	void Start ()
	{
	
	}

	void Update () 
	{

		transform.Translate(velx * Time.deltaTime, 0, 0);

		if(transform.position.x < - 30)
		{
			transform.position = new Vector3(6, 2, 0);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ;
		}
	
	}
}
